package com.hhkj.admin.order.service.base;

import com.hhkj.admin.order.common.cont.OrderRefundConst;
import com.hhkj.admin.order.domain.OrderRefund;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hhkj.admin.order.model.dopo.OrderRefundDo;
import com.hhkj.admin.order.model.dopo.OrderRefundPo;
import com.ruoyi.common.base.biz.service.base.BaseService;

import java.util.List;

/**
* @author admin
* @description 针对表【s_order_refund(记录客户每笔退款的信息)】的数据库操作Service
* @createDate 2023-10-27 14:07:42
*/
public interface OrderRefundService extends BaseService<OrderRefund, OrderRefundDo, OrderRefundPo> {

    /**
     * 计算今天的退款数量
     * @return
     */
    Long countByToday();

    /**
     * 获取已经同意退款的退款申请
     * @param orderId 订单id
     * @return
     */
    OrderRefundPo getAgreedRefundPo(Long orderId);
}
